FileSource

open class FileSource

Holds a central reference to the core's DefaultFileSource for as long as there are active mapviews / offline managers

Types

Link copied to clipboard
This callback receives an asynchronous response containing the new path of the resources cache database.
Link copied to clipboard
This callback allows implementors to transform URLs before they are requested from the internet.

Functions

Link copied to clipboard
open fun activate()
Link copied to clipboard
open fun deactivate()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the single instance of FileSource.
Link copied to clipboard
Get internal cache path for a context.
Link copied to clipboard
Get files directory path for a context.
Link copied to clipboard
Initializes file directories paths.
Link copied to clipboard
open fun isActivated(): Boolean
Link copied to clipboard
Checks if external storage is available to at least read.
Link copied to clipboard
open fun setApiBaseUrl(baseUrl: String)
Link copied to clipboard
open fun setApiKey(apiKey: String)
Link copied to clipboard
Changes the path of the resources cache database.
Link copied to clipboard
Sets a callback for transforming URLs requested from the internet The callback will be executed on the main thread once for every requested URL.
Link copied to clipboard
open fun setTileServerOptions(tileServerOptions: TileServerOptions)